<?php
require_once(substr(dirname(__FILE__) . '/',0, -4)."/inc/header.php");
fVisitors();

// BODY INFORMATION START
	$msg = $_GET['err'] == 1 ? '<div class="loginResponse">You aren\'t listed, please try again</div>' : NULL ;
	$loginBtn = '<input type="submit" name="login" id="login" value="Login" style="padding:15px;font-size:16px;margin-top:45px;">';
	$galahDiv = '<div style="position:absolute;bottom:70px;left:181px;"><img src="'.URL.'/images/galah.png" alt="" /></div>';

	echo '
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<html>
			<head>
				<title>Login</title>
				<link href="'.URL.'/inc/css/login.css" rel="stylesheet" type="text/css" />
				<script type="text/javascript" src="'.URL.'/inc/js/login.js"></script>
			</head>
	<body>
		<form action="'.URL.'/inc/processors/login_process.php" method="POST" name="loginForm" id="loginForm" onSubmit="return loginValid(this);">
		
		<div class="login" style="position:relative;">'.$galahDiv.''.$msg.'	
		<div name="loginResponse" id="loginResponse" class="loginResponse"></div>	  
		<div class="login_btn">'.$loginBtn.'</div>
			<div class="login_fields">
				<table cellpadding="2">
					<tr> 
						<td>Username<br  />
						<input name="username" id="username" type="text" value="'.$_GET['username'].'" title="Username can be an email address or a word" />
						</td>
					</tr>
					<tr> 
						<td>Password<br />
						<input name="password" id="password" type="password" />
						<input type="hidden" name="" id="loginSucess" />
						</td>
					</tr>
				</table>
			
			</div>
		</div>
		</form>
	</body>
	</html>';
?>
